package message;

import model.RoomInfo;
import socket.ChessClient;

public class ServerReadyMessage extends BaseMessage {
    RoomInfo roomInfo;

    public ServerReadyMessage(RoomInfo roomInfo) {
        this.roomInfo = roomInfo;
    }

    @Override
    public void sendToServer() {

    }

    @Override
    public void selfExecute() {
        System.out.println("左边准备了吗" + roomInfo.isLeftReady() + "右边准备了吗: " + roomInfo.isRightReady());
        ChessClient.getInstance().getRoom().setAnotherReadyLabel(roomInfo);
    }
}
